import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

import { QRCoderPage } from './qrcode/qrcode'
import { PersonPage } from './personPage/personPage'

@Component({
  selector: 'page-my',
  templateUrl: 'my.html'
})
export class MyPage {

  constructor(
    public navCtrl: NavController
  ) {

  }
  public QRCodeClick(event, item) {
    this.navCtrl.push(QRCoderPage, {
      item: item
    }, { animate: true, direction: 'forward' });
  }
  public goPersonPage():void{
    this.navCtrl.push(PersonPage);
 }

}
